<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>实验4：实现制作年历案例。</title>
    <style>
        body{
            text-align: center;
        }
        .box{
            margin: 0 auto;
            width: 880px;
        }
        .title{
            background: #ccc;
        }
        table{
            height: 200px;
            width: 200px;
            font-size: 12px;
            text-align: center;
            float: left;
            margin: 10px;
            font-family: Arial;
        }
    </style>
</head>
<body>

</body>
<script src="calendar.js" type="text/javascript"></script>
<script type="text/javascript">
    /**
     * @Description:
     * @author 朱志文
     * @date 2021/10/15
     */
    /*弹出一个输入框，提示用户输入年份*/
    var year = parseInt(prompt('输入年份：', '2021'))
    document.write(calendar(year))
</script>

</html>